Builder
Builder to construct a BubbleMetadata object.
Constructors
Link copied to clipboard
constructor()
Creates a BubbleMetadata.Builder based on a ShortcutInfoCompat.
Creates a BubbleMetadata.Builder based on the provided intent and icon.
Functions
Link copied to clipboard
Creates the BubbleMetadata defined by this builder.
Link copied to clipboard
If set and the app creating the bubble is in the foreground, the bubble will be posted in its expanded state, with the contents of getIntent in a floating window.
Link copied to clipboard
open fun setDeleteIntent(@Nullable deleteIntent: PendingIntent): NotificationCompat.BubbleMetadata.Builder
Sets an optional intent to send when this bubble is explicitly removed by the user.
Link copied to clipboard
open fun setDesiredHeight(@Dimension(unit = 0) height: Int): NotificationCompat.BubbleMetadata.Builder
Sets the desired height in DPs for the app content defined by setIntent, this height may not be respected if there is not enough space on the screen or if the provided height is too small to be useful.
Link copied to clipboard
open fun setDesiredHeightResId(@DimenRes heightResId: Int): NotificationCompat.BubbleMetadata.Builder
Sets the desired height via resId for the app content defined by setIntent, this height may not be respected if there is not enough space on the screen or if the provided height is too small to be useful.
Link copied to clipboard
Sets the icon for the bubble.
Link copied to clipboard
Sets the intent that will be used when the bubble is expanded.
Link copied to clipboard
open fun setSuppressNotification(shouldSuppressNotif: Boolean): NotificationCompat.BubbleMetadata.Builder
If set and the app posting the bubble is in the foreground, the bubble will be posted without the associated notification in the notification shade.